﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Presidenta.Master" AutoEventWireup="true" CodeBehind="ModificarTarea.aspx.cs" Inherits="Interfaces.Tareas.ModificarTarea" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: left;
        }
        .style3
        {
            text-align: left;
            width: 64px;
        }
        .style5
        {
            width: 212px;
        }
        .style6
        {
            text-align: left;
            width: 212px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script>
    function Count(text) {
        //asp.net textarea maxlength doesnt work; do it by hand
        var maxlength = 150; //set your value here (or add a parm and pass it in)
        var object = document.getElementById(text.id)  //get your object
        if (object.value.length > maxlength) {
            object.focus(); //set focus to prevent jumping
            object.value = text.value.substring(0, maxlength); //truncate the value
            object.scrollTop = object.scrollHeight; //scroll to the end to prevent jumping
            return false;
        }
        return true;
    }
</script>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
 </asp:ScriptManagerProxy>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
         <asp:Panel ID="Panel1" runat="server" GroupingText="Modificar Tarea" 
                style="text-align: left">
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
               <table class="style1">
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            &nbsp;</td>
                        <td class="style2">
                            &nbsp;</td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td style="text-align: left" class="style5">
                            Nombre: </td>
                        <td class="style2">
                            <asp:TextBox ID="TextBox1" runat="server" MaxLength="20" ></asp:TextBox>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            Miembro Asignado:</td>
                        <td class="style2">
                            <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True"></asp:TextBox>
                            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" 
                                Text="Buscar Miembro" CssClass=JCIstyle />
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            <asp:Label ID="Label1" runat="server" Text="Relacionado a Programa:"></asp:Label>
                        </td>
                        <td class="style2">
                            <asp:TextBox ID="TextBox3" runat="server" ReadOnly="True"></asp:TextBox>
                            <asp:Button ID="Button3" runat="server" onclick="Button3_Click" 
                                Text="Buscar Programa" Width="144px" CssClass=JCIstyle/>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            Descripcion:</td>
                        <td class="style2">
                            <asp:TextBox ID="TextBox4" runat="server" Height="88px" Width="360px" 
                                TextMode="MultiLine" onKeyUp="javascript:Count(this);" onChange="javascript:Count(this);" ></asp:TextBox>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            Fecha</td>
                        <td class="style2">
                            <asp:TextBox ID="TextBox5" runat="server" Enabled="False"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" 
                                Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton1" TargetControlID="TextBox5">
                            </ajaxToolkit:CalendarExtender>
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Images/calendar.jpg" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:TextBox ID="TextBox6" runat="server" Enabled="False"></asp:TextBox>
                            <ajaxToolkit:CalendarExtender ID="TextBox6_CalendarExtender" runat="server" 
                                Enabled="True" Format="yyyy-MM-dd" PopupButtonID="ImageButton2" TargetControlID="TextBox6">
                            </ajaxToolkit:CalendarExtender>
                            <asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Images/calendar.jpg" />
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            &nbsp;</td>
                        <td class="style2">
                            <asp:Label ID="LabelError" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style6">
                            &nbsp;</td>
                        <td class="style2">
                            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                                Text="Guardar" CssClass=JCIstyle />
                        </td>
                        <td class="style2">
                            &nbsp;</td>
                    </tr>
                </table>
             </ContentTemplate>
             </asp:UpdatePanel>
               
            </asp:Panel>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <asp:Panel ID="Panel2" runat="server" style="text-align: left">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label2" runat="server" ForeColor="#3366FF" 
                    style="text-align: center" Text="La tarea fue modificada exitosamente"></asp:Label>
            </asp:Panel>
        </asp:View>
    </asp:MultiView>
           
    
</asp:Content>
